package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.sta.StaFeeitemVsItemdict;
import com.ysd.lis.service.sta.StaFeeitemVsItemdictService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 申请项目与报告项目对照表 前端控制器
 * </p>
 *
 * @author wh
 * @since 2025-01-17
 */
@RestController
@RequestMapping("/lis/sta/feeitemVsItemdict")
public class StaFeeitemVsItemdictController extends BaseController {

    @Autowired
    private StaFeeitemVsItemdictService labFeeitemVsItemDictService;


    @ApiOperation("根据申请项目获取对应的报告项目")
    @GetMapping("/findItemDictListByFeeCode")
    public Result findItemDictListByFeeCode(String feeCode) {
        return labFeeitemVsItemDictService.findItemDictListByFeeCode(feeCode);
    }

    @ApiOperation("批量新增申请项目对照数据")
    @PostMapping("/batchAddFeeVsDictList")
    public Result batchAddFeeVsDictList(@RequestBody List<StaFeeitemVsItemdict> list) {
        return labFeeitemVsItemDictService.batchAddFeeVsDictList(list);
    }
    @ApiOperation("批量删除申请项目对照数据")
    @PostMapping("/batchDeleteFeeVsDictList")
    public Result batchDeleteFeeVsDictList(@RequestBody List<StaFeeitemVsItemdict> list) {
        return labFeeitemVsItemDictService.batchDeleteFeeVsDictList(list);
    }

}
